<!DOCTYPE HTML>
<html>
<head>
<include file="Public:head" />
</head>

<body>
<include file="Public:header" />

<div class="midder">
<div class="mc">
	<h1>{$seo.title}</h1>
	<div class="cleft">
    	
		<div class="note_list">
		
         <if condition="$arrNote">
		     <foreach name="arrNote" item="item">
		    <dl>
		        <dt><a href="{:U('space/notes/show',array('id'=>$item['noteid']))}" title="{$item[title]}">{$item[title]}</a><span class="open"><a href="javascript:;">开关</a></span></dt>
		        <dd class="addtime">{$item.addtime|date="Y-m-d H:i:s",###}</dd>
		        <dd class="note_des"><php> echo sub_str($item['content'],280);</php>...&nbsp;<a href="{:U('space/notes/show',array('id'=>$item[noteid]))}#comment">({$item['count_comment']}回应)</a></dd>
		        
		        <dd class="action">
		         {$item['count_view']} 人浏览  &nbsp;&nbsp;
                 <a href="{:U('space/notes/show',array('id'=>$item['noteid']))}#comments" title="回应">{$item['count_comment']} 条回应</a>
		         <if condition="$item['userid'] eq $visitor['userid']">
		        &gt; <a href="{:U('space/notes/edit',array('id'=>$item['noteid']))}" title="">修改</a> &gt; <a href="{:U('space/notes/delete',array('id'=>$item['noteid']))}" title="" onClick="return confirm('删除这篇日记吗?')">删除</a>
		         </if>
		        </dd>
		    </dl>
		    </foreach>
		  <else/>
		      <if condition="$visitor['userid'] eq $strUser['userid']">
              <p class="pl f14">你可以在这里记录您日记了，马上就 <a href="{:U('space/notes/create')}">开始写吧</a> 。</p>
              <else/>
              <p class="pl f14">这家伙太懒了还没有写过任何日记 。</p>
              </if>
		  </if>
		</div>
		<div class="page">{$pageUrl}</div>         
		    	
    </div><!--//cleft-->
    <div class="cright">
        <if condition="$visitor['userid'] eq $strUser['userid']">
            <p class="pl2">&gt; <a href="{:U('space/notes/create')}" class="create-new-album" >开始写日记</a></p>
        </if>
        
		<div class="mod">
	        <h2>
	          	阅读排行
	            &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
	           
	    	</h2>
			<ul class="note-list">
            	  <foreach name="hotNotes" item="item"> 
			      	<li><a href="{:U('space/notes/show',array('id'=>$item['noteid']))}" title="$item['title']">{$item['title']}</a></li>
                  </foreach>
            </ul>       
		</div>        
        
    </div><!--//right-->
</div>
</div>

<include file="Public:footer" />
</body>
</html>